package com.universityJob.modules.data.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.universityJob.modules.data.entity.DataHistoryEntity;
import com.universityJob.modules.data.entity.DataJobEntity;
import com.universityJob.modules.data.entity.Recommend;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author mao on 2021/5/13.
 * @version 1.0 maozhijob@163.com
 */
@Mapper
public interface DataHistoryDao extends BaseMapper<DataHistoryEntity> {

    List<DataHistoryEntity> selectAll(Page<DataHistoryEntity> page, Map stu);

    List<DataHistoryEntity> selectAl(Map stu);

    DataHistoryEntity findById(Long historyId);

    void insertOne(Map map);

    List getAllOlympiad();
    //后台统计图接口
    List<Map> selectRecommends(Map<String, Object> params);
    //小程序调用历史推送信息接口
    List<Map> findRecommends(Page<Map> page, Map<String, Object> params);

    Map statisticsJob();

    int upRecommendsStatus(String id);
}
